﻿using Microsoft.AspNetCore.Mvc.ModelBinding.Validation;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using ZR.DataCollection.ICommunication;
using ZR.DataCollection.InterfaceClass;
using ZR.DataCollection.SingleParameter;

namespace ZR.DataCollection.Execute
{
    /// <summary>
    /// 批次码上传监控
    /// </summary>
    public class ExecuteBatchMonitorWork : IExecuteWork
    {
        

        public void ExecuteImport()
        {
            if (CurrentAppInfo.Current.InterfaceCommExtend!=null)
            {
                CurrentAppInfo.Current.InterfaceCommExtend.CommunicationDataCallback += CommunicationDefault_plc_dataChange;
            }
        }
        public void CommunicationDefault_plc_dataChange(string stationType, INormCommunication communication, int itemNo, string address, object value)
        {
            if (Convert.ToInt32(value).Equals(1))
            {

            }
        }
    }
}
